import { money } from "@/util/util"
export const tableOption = {
  filterBtn: true,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  viewBtn: false,
  labelWidth: 120,
  menuWidth: 280,
  selection: true,
  tip: false,
  column: [{
    label: '商品编号',
    prop: 'Id',
    span: 24,
    showColumn: false,
  }, {
    label: '商品图片',
    prop: 'ImgUrl',
    span: 24,
    slot: true
  }, {
    label: '商品名称',
    prop: 'GoodsName',
    span: 24
  }, {
    label: '主标题',
    prop: 'MainTitle',
    span: 24
  }, {
    label: '商品分类Id',
    prop: 'GoodsTypeId',
    span: 24,
    showColumn: false,
  }, {
    label: '商品分类名称',
    prop: 'GoodsTypeName',
    span: 24
  }, {
    label: '状态',
    prop: 'StatusStr',
    span: 24
  }, {
    label: '价格',
    prop: 'Price',
    span: 24,
    formatter: function (row) {
      return money(row.Price)
    }
  }, {
    label: '库存',
    prop: 'Stock',
    span: 24
  }, {
    label: '运费模版',
    prop: 'TransportTemplateId',
    span: 24,
    showColumn: false,
  }, {
    label: '小区Id',
    prop: 'CommunityId',
    span: 24,
    showColumn: false,
  }

  ]
}
